<template>
  <div class>
    <div id="topo-canvas"></div>
  </div>
</template>
<script>
import { Topology } from "topology-core";

import sss from './serve.json'
// import sss from './flow-account.json'

export default {
  components: {},
  data() {
    return {};
  },
  computed: {},
  watch: {},
  mounted() {
    var canvas = new Topology("topo-canvas", {});

    console.log(sss);
    

    // 3. 渲染图形
    // 其中，参数json表示图形数据
    canvas.open(sss);

    // 4. 如果json发送变化，重绘
    canvas.render();
  },
  methods: {}
};
</script>
<style lang='scss' scoped>
</style>